package com.hy.medicine;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("order_item")
@ApiModel(value = "订单项目")
public class OrderItem {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("订单项ID")
    private Long id;

    @ApiModelProperty("订单ID")
    private String orderId;

    @ApiModelProperty("药品ID")
    private Long medicineId;

    @ApiModelProperty("药品名称")
    private String medicineName;

    @ApiModelProperty("药品图片")
    private String imageUrl;

    @ApiModelProperty("药品规格")
    private String specification;

    @ApiModelProperty("药品剂型")
    private String dosageForm;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("总价")
    private BigDecimal totalPrice;
}
